﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BasicData.Domain
{
    /// <summary>
    /// 请假申请
    /// </summary>
    public class LeaveModel
    {
        /// <summary>
        /// 主键标识
        /// </summary>
        [Key]
        public int LeaveId { get; set; }
        public int UserId { get; set; }
        public string LeaveName { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public int DepartmentId { get; set; }

        /// <summary>
        /// 请假类别
        /// </summary>
        public int TypeId { get; set; }
        public string typeIds { get; set; } = string.Empty;

        /// <summary>
        /// 请假时间
        /// </summary>
        public DateTime leaveTime { get; set; }

        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime EndleaveTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 请假原因
        /// </summary>
        public string? cause { get; set; } = string.Empty ;

        /// <summary>
        /// 审批原因
        /// </summary>
        public string? leavecause { get; set; }

        /// <summary>
        /// 部门领导
        /// </summary>
        public string DepartmentManager { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public int Sates { get; set; }

        /// <summary>
        /// 删除标识
        /// </summary>
        public bool IsDeleted { get; set; }
        public int Number { get; set; }
    }
}
